package com.dynabook.ems.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 样机和工单的关系表
 * @TableName ems_engine_work_order
 */
@TableName(value ="ems_engine_work_order")
@Data
public class EmsEngineWorkOrder implements Serializable {
    /**
     * 样机编号
     */
    @TableField(value = "fixed_no")
    private String fixedNo;

    /**
     * 工单号
     */
    @TableField(value = "work_order_number")
    private String workOrderNumber;

    /**
     * 工单详情ID
     */
    @TableField(value = "detail_id")
    private Long detailId;

    /**
     * 数据插入时间
     */
    @TableField(value = "insert_time")
    private LocalDateTime insertTime;

    /**
     * 数据更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 0未删除 1删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;
    
    /**
     * 是否是本人已借 0不是 1是
     */
    @TableField(value = "is_my")
    private Integer isMy;

    /**
     * 库存数量
     */
    @TableField(value = "borrow_num")
    private Integer borrowNum;

    /**
     *  请求ID
     */
    @TableField(value = "ems_request_id")
    private String emsRequestId;

    /**
     * 旧的请求ID
     */
    @TableField(value = "old_ems_request_id")
    private String oldEmsRequestId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}